package com.gzc.just.play.last.war.sceneserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@EntityScan(basePackages = "com.gzc.just.play.last.war.sceneserver")
@ComponentScan(
    basePackages = {
        "com.gzc.just.play.last.war.sceneserver",
        "com.gzc.just.play.last.war.common"
    },
    excludeFilters = @ComponentScan.Filter(
        type = FilterType.REGEX,
        pattern = "com\\.gzc\\.just\\.play\\.last\\.war\\.common\\.share\\..*"
    )
)
public class SceneServerApplication {
    private static final Logger log = LoggerFactory.getLogger(SceneServerApplication.class);

    public static void main(String[] args) {
        log.info("Starting SceneServer Application with Virtual Thread Framework...");
        SpringApplication.run(SceneServerApplication.class, args);
        log.info("SceneServer Application started successfully with Virtual Thread Framework");
    }
}
